package org.lee.hello;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.client.RestTemplate;

/**
 * @author jackielee
 * @version 1.0
 * @description MyClass
 * @date 2021/3/31
 **/
public class MyClass {

    @Autowired
    private RestTemplate restTemplate;

    public String doOtherStuff(){
        String result = restTemplate.getForObject("http://localhost:8080", String.class);
        return result;
    }
}
